Is the following fragment valid? union { float f; unsigned int bits; };

      

Is the following fragment valid?
union {
float f;
unsigned int bits;
};

  

Answers


Davis
Yes. It defines an anonymous union.

Githiari answered the question on May 12, 2018 at 16:36


Next: Modify the following program so that all member functions are automatically in-lined: #include using namespace std; class myclass { int i, j; public: myclass (int x, int y); void show(); }; myclass ::...
Previous: Create a class called prompt in C++ language.Pass its constructor function a prompting string of your choice.Have the constructor display the string and then input...

View More Computer Science Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions